﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Products.Application.Products;

namespace SoloplanSampleApp.WebUI.Controllers
{
    public class ProductController : Controller
    {

        private readonly IProductCommandService _productCommandService;

        public ProductController(IProductCommandService productCommandService)
        {
            _productCommandService = productCommandService;
        }

        public ActionResult Index()
        {
            return View(_productCommandService.GetAllProduce());
        }

        
        //public ActionResult Edit(Guid id)
        //{
            
        //}


    }
}
